<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Welcome extends MY_Controller {
    function __construct(){
        parent::__construct();
        $this->_auto();
        if($this->userinfo) redirect(site_url('/article'));
    }
    public function index()
    {
        $vdata['header'] =array(
            'title'=> $this->mcfg->get_config('site','title_seo'),
            'tags'=> $this->mcfg->get_config('site','tags'),
            'intro' => $this->mcfg->get_config('site','intro')
        );
        # 在使用控制器时输出CI共模板使用
        $vdata['CI'] =& $this;
        $this->load->view('welcome',$vdata);
    }

}
